﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Castle.ActiveRecord;

namespace CQIE.OVS.Model
{
    /// <summary>
    /// 比赛信息
    /// </summary>
    [ActiveRecord("ActivityInfo")]
    public class Activity:EntityBase
    {
        [Property]
        [Display(Name = "标题")]
        public string Title { get; set; }


        [Property]
        [Display(Name = "开始时间")]
        public DateTime DateStart { get; set; }


        [Property]
        [Display(Name = "结束时间")]
        public DateTime DateEnd { get; set; }


        [Property]
        [Display(Name = "比赛介绍")]
        public string Info { get; set; }


        [Property]
        public int IsAlive { get; set; }


        [HasMany(Table = "CampaignerInfo", ColumnKey = "ActivityId")]
        public IList<Campaigner> Campaigners { get; set; }
        
    }
}
